package com.power.services.district;

import java.util.List;
import java.util.Map;

import com.power.model.district.TsDistrict;
import com.power.services.GenericService;

public interface TsDistrictService extends GenericService<TsDistrict, Integer>{
	public Map<String, Object> findAll(String disName, int start, int limit, Integer pid);
	
	public Integer saveOrUpdate(TsDistrict district);
	
	public void delete(String ids) throws Exception;
	
	public List<TsDistrict> loadByPid(Integer pid);
	
	/**
	 * 得到省下拉
	 * @return
	 */
	public List<TsDistrict> findAllPro();
	
	/**
	 * 得到城市下拉
	 * @return
	 */
	public List<TsDistrict> findAllCityByProId1(Integer id);
	public List<TsDistrict> findAllCityByProId2(Integer id);
	
	/**
	 * 获取所有地区，并根据首字母进行分类
	 * @return
	 */
	public Map<String, List<TsDistrict>> findAllDis();
	
}
